<?php
defined('BY_JYA') or exit('error');
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
$return=array();

if($_RQ['op']=='get'){
	$return['item']=$this->get_setting();
	$return['htmls']=array (
		  'type' => 'edit',
		  'post' => 'post',
		  'edit_tab' => '基本信息',
		  'edits' => 
		  array (
		    0 => 
		    array (
		      'title' => '基本信息',
		      'list' => 
		      array (
		        0 => 
		        array (
		          'name' => 'account',
		          'type' => 'string',
		          'title' => '短信通账号',
		        ),
		        1 => 
		        array (
		          'name' => 'password',
		          'type' => 'string',
		          'title' => '短信通密码',
		        ),
		      ),
		    ),
		  ),
		);
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();
	$this->save_setting($postdata);
	exi('设置成功！');
}
?>